package com.yiheima.exam;

import com.yiheima.exam.Card;

import java.util.Scanner;

public class Test extends Card{
    public static void main(String[] args) {
        System.out.println("欢迎使用银行卡管理系统");
        GoldCard card1 = new GoldCard("123456", "张三", "13800138000", 10000);
        Sliver card2 = new Sliver("654321", "李四", "13800138001", 5000);
        pay(card1);
    }
    public static void pay(Card card) {
            System.out.println("请刷卡");
        Scanner sc=new Scanner(System.in);
        double money=sc.nextDouble();
        card.consume(money);
    }
}
